package com.example.yvque0312.pojo;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.time.LocalDateTime;

@Data
public class Article {
    @ExcelIgnore
    private Integer id;
    @ExcelProperty("文章标题")
    private String title;
    @ExcelProperty("文章内容")
    private String content;
    @ExcelProperty("封面")
    private String cover_img;
    @ExcelProperty("文章状态")
    private String state;
    @ExcelProperty("文章分类")
    private Integer create_user;
    @ExcelProperty("创建人")
    private Integer category_id;
    @ExcelIgnore
    //@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime create_time;
    @ExcelIgnore
    //@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime update_time;
    @ExcelIgnore
    private Integer deleted;
    @ExcelIgnore
    private Category xx;}
